{% extends 'layouts/base.html' %}
{% block content %}
<h1>导出操作</h1>
<form name = 'check_data' method = 'post' action = '{{ url('backend/orderexport/dealExportTask') }}'>
开始时间：<input type = 'text' name = 'start_time' id = 'start_time' class = 'form_date'/>
结束时间：<input type = 'text' name = 'end_time' id = 'end_time' class = 'form_date'/>
<br/><br/>
操作：<input class = "primary" type = 'submit' value = '导出'/><span class = 'red'>(*将提示有文件下载，请保存)</span>
</form>
<table class = "table table-striped table-bordered">
	<th>
		已经导出过的文件
	</th>
	<tr>
		<th class = "col-xs-4">文件名</th>
	</tr>
	{% for file in filedata %}
	<tr class = "success">
		<td><a href = "{{ file.name }}">{{ file.name }}<a></td>
	</tr>
	{% endfor %}
</table>
<!-- inline scripts related to this page -->
<script type = "text/javascript">
	//为状态选择框添加更改事件
	$(function(){
		$('#start_time').datetimepicker({
			format: 'YYYY-MM-DD 00:00:00',
			autoclose:true,
			todayBtn:true,
		});
		$('#end_time').datetimepicker({
			format: 'YYYY-MM-DD 23:59:59',
			autoclose:true,
			todayBtn:true,
		});
	});
</script>
{% endblock %}
